Custom Collection Properties
We see many properties in .Net controls which have collection of items...
Example can be items collection for drop down list which contains selected
as boolean; Name as string and value as string...
If you need collection properties for your class or custom control...
This is what you do...
First make a class whose collection you require... Say for example you need collection of Names, and each name is a class having three other properties like FirstName, LastName and MiddleName... So you first will have to make your class "Name" and then the next class "NameCollection"...
The name collection will inherit from CollectionBase...
Then you override the required functions to achieve your functionality...
Below link will help you learn more...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemcollectionscollectionbaseclasstopic.asp
With Best Regards,
Mitesh Mehta
Email : miteshvmehta@gmail.com
http://cc.1asphost.com/miteshvmehta/